package com.gy.def.dataobject;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Data
@Entity
@DynamicUpdate
@DynamicInsert
@ApiModel(value = "成绩录入表")
public class GradeTable {

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private String gradeId;

  @ApiModelProperty(value = "科目名", example = "操作系统")
  private String gradeName;

  @ApiModelProperty(value = "科目学年", example = "2015-2016")
  private String gradeYear;

  @JsonIgnore
  @ApiModelProperty(value = "科目用户id", example = "123")
  private String gradeUser;

  @ApiModelProperty(value = "科目学期", example = "1")
  private String gradeSemester;

  @ApiModelProperty(value = "科目分数", example = "100")
  private int gradePoint;

  @JsonIgnore
  private String createTime;
}
